﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataStorageQuery.aspx.cs"
    Inherits="DataStorage_DataStorageQuery" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" href="../css/css.css" type="text/css" />
    <link rel="stylesheet" href="../css/DropDownList.css" type="text/css" />

    <script src="../JS/calendar.js" type="text/javascript"></script>

    <script src="../js/Common.js" type="text/javascript"></script>

    <script src="../JS/DropDownList.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
      function document.onkeydown()     
      {
          var   e=event.srcElement; 
          if(event.keyCode==13)
          {
             return   false; 
          }
      }
      
    function GetId(obj){
        if(obj.checked){
            $("HiddenID").value += obj.value + ",";
        }else{
            $("HiddenID").value.replace(obj.value + ",","");
        }
    }
    function CheckAllList(spanChk)//CheckBox全选
    {
        var oItem = spanChk.children;
        var theBox=(spanChk.type=="checkbox")?spanChk:spanChk.children.item[0];
        xState=theBox.checked;
        elm =$("GridView1").getElementsByTagName("input");
        for(i=0;i<elm.length;i++)
        if(elm[i].type=="checkbox" && elm[i].id !='ckLocalPoint' && elm[i].id!=theBox.id)
        {
            if(elm[i].checked!=xState)
            elm[i].click();
        }
    }
    function btnExprot_onclick() {
        
    }

    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
        <div>
            <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td valign="middle" style="height: 25; width: 100%;">
                        <img id="imgIndicator" src="../images/Indicator.jpg" style="width: 21; height: 16;"
                            alt="当前位置" />当前位置：<asp:Label ID="Indicator" runat="server"></asp:Label></td>
                </tr>
                <tr style="height: 1; background-color: #dddddd;">
                    <td>
                    </td>
                </tr>
            </table>
            <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr style="height: 5;">
                    <td>
                    </td>
                </tr>
            </table>
            <table width="98%" border="0" cellpadding="0" class="table" cellspacing="0" align="center">
                <tr>
                    <td colspan="6" align="center" valign="top">
                        <!--搜索开始-->
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 40%;">
                                    查询数据表：<asp:DropDownList ID="ddlDataTable" runat="server" Width="150px" AutoPostBack="True"
                                        OnSelectedIndexChanged="ddlDataTable_SelectedIndexChanged">
                                        <asp:ListItem Value="" Selected="True">请选择导入数据类型...</asp:ListItem>
                                        <asp:ListItem Value="tb_EnergyFinance">能耗财务统计表</asp:ListItem>
                                        <asp:ListItem Value="tb_EquipmentArrival">设备量到达情况表</asp:ListItem>
                                        <asp:ListItem Value="tb_BaseStation">TD基站完成情况表</asp:ListItem>
                                        <asp:ListItem Value="tb_Business">业务量情况表</asp:ListItem>
                                        <asp:ListItem Value="tb_HousingArea">局房面积统计表</asp:ListItem>
                                        <asp:ListItem Value="tb_EnergySave">节能减排规划指标表</asp:ListItem>
                                        <asp:ListItem Value="tb_EnergySave09">节能减排规划指标表09</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td style="width: 80px;">
                                    查询列表项：</td>
                                <td>
                                    <div id="sltItems" runat="server" onmouseover="ShowMList('divCheckBoxList1','divCheckBoxListClose1');"
                                        onmouseout="HideMList('divCheckBoxList1','divCheckBoxListClose1');">
                                        <table>
                                            <tr>
                                                <td align="right" class="DropDownLook">
                                                    <input id="txtItems" type="text" readonly="readonly" onclick="ShowMList('divCheckBoxList1','divCheckBoxListClose1')"
                                                        style="width: 229px;" runat="server" />
                                                </td>
                                                <td align="left" class="DropDownLook">
                                                    <img alt="" id="imgShowHide1" runat="server" src="../Images/drop.gif" onclick="ShowMList('divCheckBoxList1','divCheckBoxListClose1')"
                                                        align="left" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" class="DropDownLook">
                                                    <div>
                                                        <div runat="server" id="divCheckBoxListClose1" class="DivClose">
                                                            <label runat="server" onclick="HideMList('divCheckBoxList1','divCheckBoxListClose1');"
                                                                class="LabelClose" id="lblClose1">
                                                                关闭
                                                            </label>
                                                        </div>
                                                        <div runat="server" id="divCheckBoxList1" class="DivCheckBoxList">
                                                            <asp:CheckBoxList ID="lstItems" runat="server" Width="250px" CssClass="CheckBoxList">
                                                            </asp:CheckBoxList>
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    所属区域：<asp:DropDownList ID="sltArea" DataTextField="sName" DataValueField="id" runat="server">
                                    </asp:DropDownList>
                                    开始时间：
                                    <asp:TextBox ID="txtSTime" runat="server" TabIndex="1" Width="100" onclick="calendardate(this,true);"></asp:TextBox>
                                    &nbsp;&nbsp;结束时间：<asp:TextBox ID="txtETime" runat="server" TabIndex="2" Width="100"
                                        onclick="calendardate(this,true);"></asp:TextBox>
                                    <asp:Button ID="btnSearch" runat="server" CssClass="button02" Text="查询" OnClick="btnSearch_Click" />
                                    <asp:Label ID="LabMessage" runat="server" ForeColor="Red"></asp:Label>
                                    <input type="hidden" id="HiddenID" name="HiddenID" runat="server" />
                                    <asp:Button ID="btnDelete" runat="server" CssClass="button02" Height="22px" Text="删除"
                                        OnClick="btnDelete_Click" />
                                    <asp:Button ID="btnAudti" runat="server" CssClass="button02" Height="22px" Text="审核" OnClick="btnAudti_Click" />
                                    <asp:Button ID="btnUnAudit" runat="server" CssClass="button02" Height="22px" Text="弃审" OnClick="btnUnAudit_Click" />
                                    <asp:Button ID="btnRefresh" runat="server" Text="Button" Width="0px" Height="0px" />
                                </td>
                            </tr>
                        </table>
                        <!--列表开始-->
                        <asp:GridView ID="GridView1" runat="server" CellPadding="4" OnRowDataBound="GridView1_RowDataBound"
                            BackColor="SteelBlue" BorderColor="DarkSlateGray" BorderStyle="Solid" BorderWidth="0px"
                            CellSpacing="1" Width="100%" AutoGenerateColumns="true" Font-Overline="False"
                            Font-Strikeout="False" Font-Underline="False" OnSorting="GridView1_Sorting">
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="#F9F9FB" />
                            <RowStyle BackColor="#F9F9FB" ForeColor="#333333" Height="24px" BorderStyle="Dotted" />
                            <AlternatingRowStyle BackColor="#EFEFF8" />
                            <HeaderStyle BackColor="#E3E7F0" Height="25px" />
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <input id="check" runat="server" type="checkbox" onclick="javascript:GetId(this);"
                                            value='<%# Eval("ID") %>' />
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <input id="checkAll" title="全选" onclick="javascript:CheckAllList(this);" runat="server"
                                            type="checkbox" />
                                    </HeaderTemplate>
                                    <ItemStyle Width="5%" HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <!--列表结束-->
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
